import { post } from '@/request/http'
import store from '@/store'

//市 接口

// 列表数据接口
export const cityManagementList = (data) =>
  post(
    '/FTKJWLHYPT/base/tmCtiyeModelList',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            ctyeChnname:data.ctyeChnname,
            ctyeCityId:data.ctyeCityId,
          }
        },
        PageIndex: {
          FTKJWLHYPT: data.PageIndexs
        },
        PageSize: {
          FTKJWLHYPT: data.PageSizes
        }
      }
    }
  )
//新增
export const addcityManagement = (data) =>
  post(
    '/FTKJWLHYPT/base/addTmCtiyeModel',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            ctyeCode:data.ctyeCode,
            ctyeChnname:data.ctyeChnname,
            ctyeEgsname:data.ctyeEgsname,
            ctyeShrcode:data.ctyeShrcode,
            ctyeRemark:data.ctyeRemark,
            ctyeShrchn:data.ctyeShrchn,
            ctyeCityId:data.ctyeCityId ,
            ctyeIsvalid:data.ctyeIsvalid,
            ctyeInsertuser:store.state.user.USR_CODE_DX_H
          }
        },
      }
    }
  )

//编辑
export const editcityManagement = (data) =>
  post(
    '/FTKJWLHYPT/base/editTmCtiyeModel',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            ctyeCode:data.ctyeCode,
            ctyeChnname:data.ctyeChnname,
            ctyeEgsname:data.ctyeEgsname,
            ctyeShrcode:data.ctyeShrcode,
            ctyeRemark:data.ctyeRemark,
            ctyeShrchn:data.ctyeShrchn,
            ctyeCityId:data.ctyeCityId,
            ctyeIsvalid:data.ctyeIsvalid,
            ctyeLstupduser:store.state.user.USR_CODE_DX_H
          }
        },
      }
    }
  )
//删除
export const delcityManagement = (data) =>
  post(
    '/FTKJWLHYPT/base/deleteTmCtiyeModel',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            ctyeCode:data.ctyeCode
          }
        },
      }
    }
  )
//   //市下拉框
// export const cityManagementXL = () =>
//   post(
//     '/FTKJWLHYPT/base/getCtiye',
//     {
//       Data: {
//         Parameters: {
//           FTKJWLHYPT: {

//           }
//         },
//       }
//     }
//   )
//   // 市管理  省下拉框
// export const shengCityManagementXL = () =>
//   post(
//     '/FTKJWLHYPT/base/getPro',
//     {
//       Data: {
//         Parameters: {
//           FTKJWLHYPT: {}
//         },
//       }
//     }
//   )

